# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=g72x++
pkgver=1
pkgrel=3
pkgdesc='Decoder for the g72x++ codec.'
arch=('x86_64' 'aarch64')
url='http://www.ps-auxw.de/'
license=('GPL2')
groups=('blackarch' 'blackarch-wireless')
source=('http://www.ps-auxw.de/g72x++.tar.bz2')
sha512sums=('03f13794a643a390c7ecb3f7f6f3158f782ca28d24fe6135b618adf0bae17271e8c72ef96a714c5277c65f1f601a429651b46102accd803d44d22a511b9ea407')

build() {
  cd g72x

  gcc $CFLAGS -o decode-g72x decode.c g*.c bitstream.c
}

package() {
  cd g72x

  install -Dm 755 decode-g72x "$pkgdir/usr/bin/decode-g72x"
  install -Dm 644 -t "$pkgdir/usr/share/doc/decode-g72x/" README
  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/decode-g72x/COPYING"
}

